import logo from './logo.svg';
import './App.css';
import Cat from './pages/Cat'
import Dog from './pages/Dog'
import { Routes, Route, Link } from 'react-router-dom'

function App() {
  return (
    <div className="App">
      <Link to={"/cat"}>cat</Link>
      <Link to={"/dog"}>dog</Link>
      <Routes>
        <Route path='/cat' element={<Cat />} />
        <Route path='/dog' element={<Dog />} />
      </Routes>
      <a href="/micro-app1">micro-app1</a>
      <a href="/micro-app2" style={{ 'margin': '0 10px'}}>micro-app2</a>
      <a href="/micro-app3">micro-app3</a>
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reloadApp2.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          qiankun micro app2
        </a>
      </header>
    </div>
  );
}

export default App;
